#include <iostream>
#include <vector>
#include <string>
using namespace std;

void g(int &i)
{
	if (i > 0)
		throw 99;
	else
		i++;
}

int main()
{
	int k = 1;
	try
	{
		g(k);
		cout << k << endl;
	}
	catch (int E_number)
	{
		cout << "ERRROR: " << E_number << endl;
		cout << k << endl;
	}
	system("PAUSE");
}